#
# Be sure to run `pod lib lint GLVideoPlayerForIJK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'GLVideoPlayerForIJK'
  s.version          = '0.1.0'
  s.summary          = '验证私有组件中使用Swift结合OC第三方.framework、.library库及OC文件组合打包构建私有Pod'

  s.homepage         = 'https://gitee.com/626192946/glvideo-player-for-ijk'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'ApterKing' => 'wangcccong@outlook.com' }
  s.source           = { :git => 'https://gitee.com/626192946/glvideo-player-for-ijk.git', :tag => s.version.to_s }

  s.swift_version = '5.0'
  s.ios.deployment_target = '10.0'
#  s.static_framework = true  

  s.source_files = 'GLVideoPlayerForIJK/Classes/*',
                   'GLVideoPlayerForIJK/Classes/**/*',
                   'GLVideoPlayerForIJK/Vendors/IJKMediaFramework.framework/Headers/**.h'
  s.public_header_files = 'GLVideoPlayerForIJK/Classes/**/*.h',
                          'GLVideoPlayerForIJK/Classes/*.h'

  
  s.resource_bundles = {
    'GLVideoPlayerForIJK' => ['GLVideoPlayerForIJK/Assets/*.png']
  }

  s.frameworks = 'AudioToolbox','AVFoundation','CoreGraphics','CoreMedia','CoreVideo','MediaPlayer','MobileCoreServices','OpenGLES','QuartzCore','UIKit','VideoToolbox'
  s.libraries = 'bz2','z','c++'
  s.vendored_frameworks =  'GLVideoPlayerForIJK/Vendors/IJKMediaFramework.framework'
  
  s.preserve_paths = 'GLVideoPlayerForIJK/Vendors/IJKMediaFramework.framework'
  s.pod_target_xcconfig = {
       'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/GLVideoPlayerForIJK/Vendors/IJKMediaFramework.framework/Headers',
       'LD_RUNPATH_SEARCH_PATHS' => '$(PODS_ROOT)/GLVideoPlayerForIJK/Vendors/',
       'OTHER_LDFLAGS' => '-ObjC'
  }

#  s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }


  # s.dependency 'AFNetworking', '~> 2.3'
  s.dependency 'SnapKit'
  s.dependency 'Alamofire'
  s.dependency 'ReachabilitySwift'
  s.dependency 'RxCocoa'
  s.dependency 'RxSwift'


end
